package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserDao {
    public User findByUsername(String username);

    public void add(User user);

    public Page<User> selectByCondition(String queryString);

    public void deleteById(Integer id);

    public Long findCountByUserId(Integer id);

    public User findById(Integer id);

    List<Integer> findRoleIdsByUserId(Integer id);

     void setUserAndRole(Map<String, Integer> map);

    void deleteAssociation(Integer id);

    void edit(User user);
}
